<?php

use Illuminate\Database\Seeder;
// use Hash;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $data = [];

        for($i=0;$i<50;$i++){
        	$tmp = [];
        	$tmp['username']=str_random(10);
        	$tmp['password']=Hash::make('hahaha');
        	$tmp['email'] = rand(100000,999999).'@qq.com';
        	$tmp['age'] = rand(10,20);
        	$tmp['img'] = '/uploads/149814383591598.jpg';

        	$data[] = $tmp;
        }
        DB::table('users')->insert($data);
    }
}
